<template>
	<view :class="[primarySize()]">
		<view class="container">
			<view class="pt20 plr30 pb30">
				
				<resume-list :resumes="resumeList" :showFav="true"></resume-list>
				
				<view class="nothing" v-if="resumeListMore.nothing">
					<image src="https://admin.mosizp.cn/static/public/icon_nothing.png" mode="aspectFit"></image>
					<text>暂无人才数据</text>
				</view>
				<view class="g-btn3-wrap" v-else>
					<view class="g-btn3" @click="fetchResume()">{{resumeListMore.text}}</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	const app = getApp();
	import resumeList from '../../components/resume-list/resume-list.vue';
	export default {
		components: {
			resumeList
		},
		data() {
			return {
				
				resumeList: [],
				resumeListMore: {page: 1}
			}
		},
		onReady() {
			uni.setNavigationBarColor({
				frontColor: '#ffffff',
				backgroundColor: this.primaryColor()
			})
		},
		onLoad() {
			
			let userinfo = this.$core.getUserinfo();
			this.userinfo = userinfo;
			this.fetchResume();
		},
		onReachBottom() {
			this.fetchResume();
		},
		methods: {
			fetchResume() {
				this.$util.fetch(this, 'xilujob.resume/fav_list', {}, 'resumeListMore', 'resumeList', 'data', 'unique');
			},
		}
	}
</script>

<style lang="scss" scoped>
.recomd_item{
	padding: 25rpx 30rpx 20rpx;
	width: 690rpx;
	background: #FFFFFF;
	border-radius: 18rpx;
	margin-top: 20rpx;
	.label{
		display: inline-block;
		vertical-align: top;
		height: 38rpx;
		background: #F7F7F7;
		border-radius: 4rpx;
		line-height: 38rpx;
		text-align: center;
		font-size: 20rpx;
		color: #A5A5A5;
		padding: 0 14rpx;
		margin-top: 20rpx;
		margin-right: 18rpx;
	}
	.bt{border-top: 1px solid #eee;}
}
</style>
